<?php

namespace App\Http\Controllers\admin;

use Illuminate\Http\Request;
use App\Models\Auth;
use App\Models\RoleAuth;
class IndexController extends BaseController
{
    //后台首页
    public function index(){
        return view('admin.index.index');
    }
    public function welcome(){
        return view('admin.index.welcome');
    }
    //后台首页 配置信息获取
    public function info(){
        if(session('user.role_id') == 1){
            return Auth::setAuthinfo();
        }
        return RoleAuth::setAuthinfo();
    }
    //配置信息
    public function system(){
        return view('admin.index.system');
    }
}
